#!/bin/sh

echo "Enter password"
read trythis

while [ "$trythis" != "secret" ]
do # do和done之间的语句将反复执行，直到条件不再为真
echo "Sorry,try again"
read trythis
done
exit 0